import request from '@/api/request'
/**从id获取商品 */
export const goodsFromid = ({ id }) =>
  request({
    url: `/api/commodity/fromid`,
    method: 'get',
    params: {
      id,
    },
  })
/**从id获取商品 */
export const goodsComment = ({ id }) =>
  request({
    url: ` /api/commodity/comment`,
    method: 'get',
    params: {
      id,
    },
  })
